/*
    @name: getMonthDate
    @author: zhangzw
    @date: 2024-01-18 15:20:46
    @LastEditors:zhangzw
    @LastEditTime:2024-01-18 15:20:46
    @params:当前真实月份
    @return:
    @description: 获取指定月份有多少天
*/
export const getMonthDate = (year: number, month: number) => {
  return new Date(year, month, 0).getDate();
};
/*
    @name: getTwoNum
    @author: zhangzw
    @date: 2024-01-18 15:19:57
    @LastEditors:zhangzw
    @LastEditTime:2024-01-18 15:19:57
    @params:
    @return:
    @description: 0-9转化为00 01 02 03 04 05 06 07 08 09
*/
export const getTwoNum = (num: number) => {
  return num < 10 && num >= 0 ? "0" + num : num + "";
};